from django.forms import ModelForm
from django.db import models
from theblog.models import Author, Blog, Comments
from django import forms


class BlogForm(ModelForm):
	class Meta:
		model = Blog

class AuthorForm(ModelForm):
	password1 = forms.CharField(widget=forms.PasswordInput)
	password2 = forms.CharField(widget=forms.PasswordInput)
	Choose_a_profile_pic = forms.FileField()
	class Meta:
		model = Author	
		exclude = ('about_me')
		

class CommentsForm(ModelForm):
	class Meta:
		model = Comments 
